<?php
/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

use Webman\Route;



Route::group('/api',function (){
    //新增或修改入驻养老院信息
    Route::post('/member/createOrder',[\app\controller\api\MemberController::class,'createOrder']);
    //获取养老院单个详情
    Route::post('/member/getInfo',[\app\controller\api\MemberController::class,'getInfo']);
    //获取养老院列表
    Route::get('/merchant/getList',[\app\controller\api\MerchantController::class,'getList']); //
    //获取滚动消息
    Route::get('/merchant/getRollMsg',[\app\controller\api\MerchantController::class,'getRollMsg']);
    //获取分类列表
    Route::get('/merchant/getCategoryList',[\app\controller\api\MerchantController::class,'getCategoryList']);
    //获取帮助文档
    Route::get('/merchant/getHelpContent',[\app\controller\api\MerchantController::class,'getHelpContent']);



    //新增访问日志
    Route::get('/user/addAccessLog',[\app\controller\api\UserController::class,'addAccessLog']);
    Route::get('/user/getUserInfo',[\app\controller\api\UserController::class,'getUserInfo']);
})->middleware([\app\middleware\Middleware::class]);
